const state = {
  collapse: false,
  showTips: true,
  refresh: false,
  role: 'admin' // 默认账号的默认身份为管理员
}

const mutations = {
  collapseChange(state, value) {
    state.collapse = value
  },
  changeShowTips(state, value) {
    state.showTips = value
  },
  changeRole(state, value) {
    state.role = value
  },
  clickRefresh(state, value) {
    state.refresh = value
  }
}

export default {
  namespaced: true,
  state,
  mutations
}
